package com.yunzhong.appointment.illnesstpye.service;

import com.yunzhong.appointment.entity.Illness;
import com.yunzhong.appointment.util.PageData;

import java.util.List;

public interface IllnessService {
    /**
     * 查所有
     * @return
     */
    List<Illness> query(PageData pd);

    /**
     * 根据主键查
     * @return
     */
    Illness queryById(String id);

    /**
     * 保存
     * @param illness
     * @return
     */
    int save(Illness illness);

    /**
     * 修改
     * @param illness
     * @return
     */
    int edit(Illness illness);

    /**
     * 删除
     * @param ids
     * @return
     */
   int delete(String[] ids);
}
